package xjtu.sad.zbsj.user.pesonal;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author lkm
 */
@Getter
@Setter
public class Personal {
    private String user_id;
    private String r_id;
    private String user_name;
    private Integer gender;//1男0女
    private String mail;//邮箱

    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @DateTimeFormat(pattern = "yyyy-MM-dd") //说明接收日期数据的格式
    private Date birth;

}
